package server.map;

import server.main.Data;
import server.utility.Id;
import server.utility.Point2d;

public class MapsDefinition {
	
	public static void loadMaps(){
		internal();
		born_map();
		map_1();
	}
	
	private static void internal(){
		Map internal = new Map(new Point2d(),new Point2d(), "Internal", new Id(-1));
		Data.add(internal);
	}
	
	private static void born_map(){
		Map bornMap=new Map(new Point2d(), new Point2d(), "Map 1", new Id(10));
		Gate g1=new Gate(new Id(11), new Point2d(), new Point2d(40, 40), new Point2d(34, 480));
		bornMap.addGate(g1);
		
		Data.add(bornMap);
	}
	
	private static void map_1(){
		Map map1=new Map(new Point2d(), new Point2d(800,600), "Forest", new Id(11));
		Gate g2=new Gate(new Id(10), new Point2d(700,397), new Point2d(769, 507), new Point2d(200, 200));
		map1.addGate(g2);
		Platform p=new Platform(new Point2d(0,505),new Point2d(800,600));
		map1.addPlatform(p);
		
		Platform p1=new Platform(new Point2d(100,252),new Point2d(707,285));
		map1.addPlatform(p1);
		
		Stair s=new Stair(new Point2d(142,229), new Point2d(177,506));
		map1.addStair(s);
		
		Data.add(map1);
	}
}
